<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // FormData ===> 传文件的时候，头像img
        // 1. 实例化
        const data = new FormData()
        console.log(data)

        // 2. append添加
        data.append('name', '奥特曼')
        data.append('skill', 'biubiubiu')
        data.append('friend', '小怪兽')

        console.log(data)
        // 3. 获取查询添加的数据 get 
        console.log(data.get('skill'))
    </script>
</body>
</html>